#ifndef LOGHELPER_H
#define LOGHELPER_H

#include <QObject>
#include <QCoreApplication>
#include <QMutex>
#include <QString>
#include <QDir>
#include <QFile>
#include <QTextStream>
#include <QDateTime>
#include <QTextCodec>

class Loghelper : public QObject
{
    Q_OBJECT
public:
    static Loghelper* getInstance();
    Loghelper(QObject *parent = NULL);
    ~Loghelper();

    void WriteLog(QString type, QString content, int level=0);     // level=0:下位机通信日志 =4:来自JNN

private:
    static Loghelper* Instance ;
};

#endif // LOGHELPER_H
